package com.bmit.clusterspring.service;

import com.bmit.clusterspring.model.BarVisualization;
import com.bmit.clusterspring.model.ScatterVisualization;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface AGNESService {
    boolean uploadCSV(String ipAddress, MultipartFile file) throws IOException;

    List<Map<String, String>> showCSV(String ipAddr);

    void setStrategy(String ipAddr, String strategy);

    void setParams(String ipAddr, String k, String linkage);

    void setColumns(String ipAddr, List<String> cols);

    void runCluster(String ipAddr);

    boolean checkSize(String ipAddr);

    String getTime(String ipAddr);

    Map<String, ScatterVisualization> scatter(String ipAddr);

    Map<String, BarVisualization> bar(String ipAddr);

    String resultName(String ipAddr);
}
